package material

import "time"

type MaterialDownload struct {
	MaterialId   int64  `gorm:"primaryKey;column:material_id;not null;UNSIGNED;comment:主键id;" json:"material_id"`
	AdvertiserId string `gorm:"column:advertiser_id;not null;comment:广告主id" json:"advertiser_id"`
	Platform     int    `gorm:"column:platform;type:tinyint(1);not null;default:0;comment:平台" json:"platform"`
	StatDate     string `gorm:"column:stat_date;type:varchar(36);comment:日期;" json:"stat_date"`
	MaterialType int    `gorm:"column:material_type;type:tinyint(1);not null;default:0;comment:素材类型" json:"material_type"`
	MdUrl        string `gorm:"column:md_url;type:varchar(255);not null;default:'';comment:视频地址" json:"md_url"`         // 原来的地址
	OssUrl       string `gorm:"column:oss_url;type:varchar(255);not null;default:'';comment:图片地址" json:"oss_url"`       // 视频或者图片地址上传obs，失败就填原来的
	MdPreview    string `gorm:"column:md_preview;type:varchar(255);not null;default:'';comment:图片地址" json:"md_preview"` // 直接取封面图，不上传
	CreatedAt    time.Time
	UpdatedAt    time.Time
}
